Zadig 文档
Zadig
教程
博客
论坛
关于
中文英文
Zadig
教程
博客
论坛
关于
Zadig v4.2
Loading...
     编辑文档
     反馈问题
     社区讨论

    本页导航

    The First Project

    This article uses containerized microservices as an example to help new users quickly get started with the basic capabilities of the Zadig system, covering the entire process from Code to Ship.

    # Preparation

    • Install Zadig: Installation Documentation
    • Integrate GitHub as the code source and fork the example source code(opens new window). For code source integration, refer to: GitHub Integration
    • Integrate the image registry: Image Registry Integration

    Tip

    If you do not use GitHub as the code source, you can download the code and upload it to your own code source, then integrate it in Zadig. See: Code Source Integration.

    # Step 1: Project Configuration

    Go to Zadig, click "Project" → "New Project", select K8s YAML project type, and fill in the project information.

    Click "Create Now" to enter the project initialization wizard, then click "Next" to create a service:

    创建项目

    # Step 2: Create a New Service

    This includes creating a new service and configuring the build, which is used for subsequent workflow deployment and updates.

    # Create a New Service

    Click "Sync from Code Repository", select the code repository, branch, and directory where the service configuration is located, then click "Sync".

    In this example, select the zadig repository, main branch, and specify the folder as examples/microservice-demo/k8s-yaml/backend.

    After creating the service, the system automatically checks the YAML format and loads system variables, custom variables, and service components.

    新建服务

    # Configure Build

    Click "Add Build" to configure the build for the service. Select the required package, code hosting platform, repository, and branch, then fill in the build script and save.

    Example configuration:

    • Package: go 1.20.7
    • Code: select the zadig repository and main branch
    • General build script:
    #!/bin/bash
    set -ex
    
    cd zadig/examples/microservice-demo/backend
    make build-backend
    
    docker build -t $IMAGE -f Dockerfile .
    docker push $IMAGE
    
    1
    2
    3
    4
    5
    6
    7
    8

    Click "Next" to proceed to environment preparation.

    # Step 3: Add an Environment

    Click "Create Environment". The system automatically creates 2 environments and 3 workflows for development and testing. Workflows are automatically bound to environments for continuous delivery.

    Tip

    The time required to create an environment depends on the service configuration and quantity. Please wait patiently.

    新建环境和工作流

    After the environment is created, click "Next" to proceed to workflow delivery.

    # Step 4: Workflow Delivery

    Click to run the the-first-sample-workflow-dev workflow to complete continuous delivery for the dev environment. Select the service and branch or pull request as needed, then start the task:

    运行工作流

    After the workflow finishes, the service version in the environment is automatically updated:

    查看更新后的服务

    Other environments are delivered in the same way as the dev environment.

    This completes the basic function demonstration of Zadig. The following describes how to configure automatic workflow triggers.

    # Configure Automatic Workflow Triggers (Optional)

    Click to configure the the-first-sample-workflow-dev workflow:

    触发器

    Add a trigger, select Git trigger, fill in the configuration, and save:

    触发器

    After submitting a pull request in GitLab, the check list displays the corresponding workflow status:

    创建 pull request

    Click the task link to jump to Zadig to view workflow details and track code changes:

    查看 Webhook 触发的工作流

    After the workflow finishes, the environment service image is updated:

    查看更新后的服务

    # Configure Workflow IM Status Notifications (Optional)

    Workflows support third-party webhooks for status notifications. Currently supported: DingTalk, Feishu, WeCom.

    For DingTalk and WeCom configuration, see: Notification Configuration

    Step 1: Add a Bot in Feishu and get the Webhook address:

    Feishu configuration step oneFeishu Configuration Step 2

    Step 2: Configure the workflow, add a notification module, fill in the Feishu Bot Webhook address, and select notification events:

    Workflow notification Feishu configuration

    Notification example:

    Feishu notification effect

    For more practical projects and cases, see Zadig Tutorial(opens new window).

    ← Core ConceptsOverview→

    资源
    教程
    论坛
    博客
    公司
    关于
    客户故事
    加入我们
    联系我们
    微信扫一扫
    hello@koderover.com

    © 2026 筑栈(上海)信息技术有限公司 沪 ICP 备 19000177 号 - 1

    •  跟随系统
    •  浅色模式
    •  深色模式
    •  阅读模式